<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        .one{
            height: 468px;
            background-color: #eee;
            background-image: url("images/banner.jpg");
            /* background-attachment: fixed; 
            默认值为scroll
            fixed背景图片不会随鼠标的滚动滚动
            */
            /* position: fixed; */
            background-attachment: fixed;
        }
        .two{
          
            height: 800px;
            background: pink;
        }
    </style>
</head>
<body>
    <div class="one">

    </div>
    <div class="two">

    </div>
</body>
</html>